package cn.com.fssg.platform.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 存储加密配置表
 * </p>
 *
 * @author fssg
 * @since 2025-08-28
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("cfg_encryption_config")
public class CfgEncryptionConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    //加密算法
    private int algorithm;

    //列名，多个列逗号分隔
    private String columnName;

    //创建时间
    private Date createTime;

    //主键
    private String id;

    //是否启用，0否，1是
    private String isEnabled;

    //密钥索引
    private int keyIndex;

    //表名
    private String tableName;

   //租户id
    private String tenantId;

    //修改时间
    private Date updateTime;

   //是否启用完整性校验
    private String integrityEnabled;

    //完整性算法
    private String integrityAlgorithm;

    //参与完整性校验的列
    private String hashColumns;

   //版本号
    private Integer version;

    //主键名
    private String pkName;

}
